-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Spanner): Inline Begin Transaction #6708
Conversation
9e74c37
to
b5e3ae8
Compare
b5e3ae8
to
720dcf1
Compare
aa36928
to
19b0abc
Compare
19b0abc
to
da0f0ed
Compare
bf4c6bc
to
a3860ac
Compare
Resolving the integration tests for now. Once the design is approved, will work on the rest. |
829e345
to
5f5a66c
Compare
5f5a66c
to
cf4e485
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some concerns with this PR. The major ones include:
- Passing everything by reference - we do not want to do this.
$this->transactionId
is typestring
andarray
. - we want it to be only one or the other- we add a new argument
$transactionId
, instead of using existing$options
More minor concerns:
- Using
and
instead of&&
- never useand
This is just a first pass. Without diving deeper into the implementation, it's hard to advise further.
We will have to pass the object at least to make the communication between other classes possible.
This we can achieve by adding a new attribute, will change this behaviour once the design is approved.
This is a great idea! Anand also mentioned this. Added this as an alternative option in the design.
We will replace this.
Thank you for the review, will discuss this further to have a deeper understanding. |
bd62965
to
4fb21a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls fix the nits and resolve pending comments. Design wise, this looks good. This required a lot of patience from your side, thank you. 🥇
There are several breaking changes, so will want to re-look at this before giving a final approval.
e61a935
to
95d67f8
Compare
95d67f8
to
89d4d17
Compare
Hi @vishwarajanand, Thank you for the review, I have resolved all your comments, please have a look and let me know how this looks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some nits, LGTM
Following our team discussion, we've decided to target a January merge for this PR. A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
go/php-spanner-ilb
BREAKING_CHANGE_REASON=marked TransactionalReadInterface as internal, added a new function into it, changed public method rollback signature.